<?php
class file {

static function get_info($file_name)	
{
$file_name=strtolower($file_name);
$info=pathinfo($file_name);
//print_array($info);	
return $info;	
}	
	
static function get_ext($file_name)	
{
$info=self::get_info($file_name);
return $info['extension'];	
}	


static function get_name($file_name)
{
$info=self::get_info($file_name);
return $info['filename'];	
}


static function get_path($file_name)
{
$info=self::get_info($file_name);
return $info['dirname'];		
}

	
}